package com.example.demo.service.Impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.example.demo.mapper.SysUserRoleMapper;
import com.example.demo.domain.SysUserRole;
import com.example.demo.domain.SysUserRoleExample;
import com.example.demo.service.SysUserRoleService;
@Service
public class SysUserRoleServiceImpl implements SysUserRoleService{

    @Resource
    private SysUserRoleMapper sysUserRoleMapper;

    @Override
    public long countByExample(SysUserRoleExample example) {
        return sysUserRoleMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SysUserRoleExample example) {
        return sysUserRoleMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long userId,Long roleId) {
        return sysUserRoleMapper.deleteByPrimaryKey(userId,roleId);
    }

    @Override
    public int insert(SysUserRole record) {
        return sysUserRoleMapper.insert(record);
    }

    @Override
    public int insertSelective(SysUserRole record) {
        return sysUserRoleMapper.insertSelective(record);
    }

    @Override
    public List<SysUserRole> selectByExample(SysUserRoleExample example) {
        return sysUserRoleMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(SysUserRole record,SysUserRoleExample example) {
        return sysUserRoleMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(SysUserRole record,SysUserRoleExample example) {
        return sysUserRoleMapper.updateByExample(record,example);
    }

}
